import Mock from "mockjs";

export default {
  getHomeData: () => {
    return {
      data: {
        videoData: [
          {
            name: "springboot",
            value: Mock.Random.float(1000, 10000, 0, 2)
          },
          {
            name: "vue",
            value: Mock.Random.float(1000, 10000, 0, 2)
          },
          {
            name: "element-ui",
            value: Mock.Random.float(1000, 10000, 0, 2)
          }
        ]
      }
    };
  },
  showScuess: () => {
    return {
      data: {
        message: "上传成功"
      }
    };
  },
  getOpts: () => {
    return {
      opts: [
        {
          label: ["2020-07-01", "系统测试班表07"]
        },
        {
          label: ["2020-08-01", "系统测试班表08"]
        },
        {
          label: ["2020-09-01", "系统测试班表09"]
        },
        {
          label: ["2020-10-01", "系统测试班表10"]
        },
        {
          label: ["2020-11-01", "系统测试班表11"]
        }
      ]
    };
  },
  sceduleSubmit: () => {
    return { message: "提交成功" };
  },
  scheduleEmp: () => {
    return {
      file: "@image",
      message: "提交成功"
    };
  }
};
